//
//  SEGIntegralManager.h
//  ExcellentHome
//
//  Created by 刘山 on 2017/2/10.
//  Copyright © 2017年 陈区. All rights reserved.
//
/// 积分相关的网络请求

#import <Foundation/Foundation.h>
#import "SEGStatisticsModel.h"
#import "SEGNoticeModel.h"
/// 积分-行为奖励数据模型
#import "SEGIntegralBehaviorModel.h"
#import "SEGIntegralExchangeConfirmModel.h"
#import "SEGBanalcesModel.h"
#import "SEGBalanceForHbModel.h"

#if __has_include(<Commom/SEGHTTPBusinessManager.h>)
#import <Commom/SEGHTTPBusinessManager.h>
#else
#import "SEGHTTPBusinessManager.h"
#endif

#if __has_include(<Commom/SEGHTTPBusinessManager.h>)
#import <Commom/SEGHTTPBusinessManager.h>
#else
#import "SEGHTTPBusinessManager.h"
#endif

#if __has_include(<Commom/SEGInterfaceHeader.h>)
#import <Commom/SEGInterfaceHeader.h>
#else
#import "SEGInterfaceHeader.h"
#endif

#if __has_include(<SEGPlatform/CommonViewsHeader.h>)
#import <SEGPlatform/CommonViewsHeader.h>
#else
#import "CommonViewsHeader.h"
#endif



@interface SEGIntegralManager : NSObject
/// 根据业务计算成长值，积分 数据源
@property (nonatomic, strong) SEGIntegralBehaviorModel* seg_segintegralbehaviormodel;
/// 根据业务计算成长值，积分  数据源
@property(nonatomic,copy)NSString* growtAlert; //提示语

/// 积分统计（昨日，今日）
-(void)requestIntegralStatisticsUserId:(NSString*)userId //用户ID
                          Finished:(SEGNetworkReponse)finished;
/// 积分统计（昨日，今日） 数据源
@property (nonatomic, strong) SEGStatisticsModel* seg_segstatisticsmodel;

/// 加载兑换成的公告信息
-(void)requestIntegralNoticeWithPageSize:(NSString *)pageSize
                                  pageNo:(NSString *)pageNo
                                Finished:(SEGNetworkReponse)finished;
/// 加载兑换成的公告信息
@property (nonatomic, strong) NSArray<SEGNoticeModel*>* seg_segnoticemodel;
@property (nonatomic, strong) NSString* noticePageNo;//公告当前的页码
@property (nonatomic, strong) NSString *noticeTotalPage;//公告总页数

/**
 *  请求钱包-模型数据源
 */
@property (nonatomic, strong) NSArray<SEGBanalcesModel*>* seg_segbanalcesmodel;
/**
 *  请求钱包-新的添加模型的请求
 */
- (void)requestMyCardV2WithDict:(NSDictionary*)params Finished:(SEGNetworkReponse)finished;

/**
 *  请求钱包-红包账本记录列表接口
 */
@property (nonatomic, strong) NSArray<SEGBalanceForHbModel*>* seg_segbalanceforhbmodel;
/**
 *  请求钱包-红包账本记录列表接口
 */
- (void)requestMyBalanceForHbDict:(NSDictionary*)params Finished:(SEGNetworkReponse)finished;


/**
 * 加载确认兑换页信息
 * @author Wendy
 * @param pid  商品ID
 */
-(void)requestIntegralExchangeConfirmInfoWithId:(NSString *)pid finished:(SEGNetworkReponse)finished;
/**
 确认兑换页信息
 */
@property (nonatomic, strong)SEGIntegralExchangeConfirmModel *exchangeConfirmModel;

/**
 * 加减数量判断是否足够
 * @author Wendy
 * @param pid  商品ID
 */
-(void)requestIntegralExchangeJudgeQuantityWithId:(NSString *)pid
                                         quantity:(NSUInteger)quantity
                                         finished:(SEGNetworkReponse)finished;

/**
 * 积分商城商品抢兑
 * @author Wendy
 * @param params 信息字典
 * @param finished 回调结果
 */
- (void)requestExchangeConfirmWithParams:(NSDictionary *)params finished:(SEGNetworkReponse)finished;

///  6.获取个人配送地址
- (void)requestMyAddressFinished:(SEGNetworkReponse)finished;
@property (nonatomic, strong) NSArray<SEGAddressModel*>* seg_segaddressmodel;
@end

